<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
    <title>websocket离线测试</title>
    <meta content="websocket离线测试 工具" name="description">
    <link rel="stylesheet" href="index.css">
</script>
</head>
<body>
    <div>
        <div class="zone_conn">
            <input type="text" class="form-control" style="float:left;" id="inp_url" value="ws://127.0.0.1/websocket" placeholder="连接的地址">
            <button type="button" id="btn_conn" class="btn btn-primary" style="float:left;margin-left:10px;margin-right:10px;" onclick="fun_initWebSocket();">连接</button>
            <button type="button" id="btn_close" class="btn btn-danger" style="float:left;" onclick="fun_close();" disabled="disabled">断开</button>
        </div>
        <div class="clearboth" style="width:430px;">
            1、连接格式为 ws://IP或域名:端口（示例ws://127.0.0.1/websocket）<br>
            2、对于<span style="color:red">内网</span>的测试环境，只需填入服务端的<span style="color:red">内网IP</span>和端口<br>
        </div>
        <div class="zone_send">
            <textarea id="inp_send" class="form-control" style="height:100px;" placeholder="发送的内容"></textarea>
            <br>
            <button type="button" id="btn_send" class="btn btn-info" onclick="fun_sendto();">发送（ctrl+回车）</button>
           
        </div>
    </div>
    <div style="position:absolute;top:120px;left:470px;">
        <div id="div_msgzone" class="panel panel-default">
            <div class="panel-heading">消息窗口</div>
            <div id="div_msg" class="panel-body" style="width: 1420px; height: 767px;"><div style="margin-bottom:10px;position:relative;left:0px;"></div>
        </div>
    </div>
    <script type="text/javascript" src="index.js"></script>
</body></html>